package com.db.junit;

public interface IAccount {
    /**
     * UserName
     */
    String getUserName();

    /**
     * Password
     */
    boolean passwordMatches(String password);

    void setPassword(String password);

    /**
     * Logged
     */
    void setLoggedIn(boolean loggedIn);

    /**
     * Revoked
     */
    boolean isRevoked();

    void setRevoked(boolean revoked);

    /**
     * Password change time
     */
    long getPasswordChangeTime();

    void updatePasswordChangeTime();

    /**
     * Last activity time
     */
    long getLastActivityTime();

    long updateLastActivityTime();
}
